import request from '@/utils/request'

// 查询智库列表
export function listDocument(query) {
  return request({
    url: '/function/document/list',
    method: 'get',
    params: query
  })
}
// 智库首页数据展示
export function showDocument(query) {
  return request({
    url: '/function/document/thinkTankHomepageCount',
    method: 'get',
    params: query
  })
}

// 查询智库详情
export function getDocument(query) {
  return request({
    url: '/function/document/getInfo/',
    method: 'get',
    params:query
  })
}

// 新增智库
export function addDocument(data) {
  return request({
    url: '/function/document',
    method: 'post',
    data: data
  })
}

// 修改智库
export function updateDocument(data) {
  return request({
    url: '/function/document',
    method: 'put',
    data: data
  })
}

// 删除智库
export function delDocument(id) {
  return request({
    url: '/function/document/' + id,
    method: 'delete'
  })
}

